#include<stdio.h>
#define N 50

void main()
{
    int arr[3][4]={{1,2,3,4},{5,6,2,8},{9,10,11,12}};
    int r,c,i,j;
    scanf("r=%d,c=%d",&r,&c);
    int min=arr[r][c];
    for(int i=0;i<3;i++){
        for(int j=0;j<4;j++){
            printf("%d ",arr[i][j]);
            if(arr[i][j]<min && (i==r||j==c) ) min=arr[i][j];
        }
        printf("\n");
    }
    printf("a(%d,%d)=%d\n",r,c,arr[r][c]);
    if(arr[r][c]==min)  printf("this point is a saddle point.");
    else   printf("this point is not a saddle point.");
}